package healththink



import grails.test.mixin.*
import org.junit.*

/**
 * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
 */
@TestFor(TelephoneNumber)
class TelephoneNumberTests {
	
   @Test
   void testTele() {
	TelephoneNumber target = HealthThink.getStaticPhone()
	
	assertNotNull("(error)TelephoneNumber Target Null", target)
	assertNotNull("(error)TelephoneNumber Validation Was Not Successfull", target.validate())
	
	target = target.save(flush:true)
	TelephoneNumber expected = TelephoneNumber.findById(target.id)

	assertNotNull("(error)TelephoneNumber Target was not saved", target)
	assertNotNull("(error)Expected TelephoneNumber was null", expected)
	assertEquals("(error)Target and Expected are not Equal", target, expected)
	   
	target.delete(flush:true)
	
  }
}
